.class public Lcom/estrongs/fs/impl/local/b;
.super Ljava/lang/Object;
.source "DocumentTreeAuthHelper.java"


# annotations
.annotation build Landroidx/annotation/RequiresApi;
    api = 0x15
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/fs/impl/local/b$g;,
        Lcom/estrongs/fs/impl/local/b$f;,
        Lcom/estrongs/fs/impl/local/b$e;,
        Lcom/estrongs/fs/impl/local/b$d;
    }
.end annotation


# instance fields
.field private final a:Landroid/content/Context;

.field private b:Ljava/lang/String;

.field private c:Ljava/lang/String;

.field private d:Ljava/lang/String;


# direct methods
.method private constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/fs/impl/local/b;->a:Landroid/content/Context;

    const-string p1, ""

    if-nez p2, :cond_0

    move-object p2, p1

    .line 3
    :cond_0
    iput-object p2, p0, Lcom/estrongs/fs/impl/local/b;->b:Ljava/lang/String;

    if-nez p3, :cond_1

    move-object p3, p1

    .line 4
    :cond_1
    iput-object p3, p0, Lcom/estrongs/fs/impl/local/b;->c:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/fs/impl/local/b;)Landroid/content/Context;
    .locals 0

    .line 2
    iget-object p0, p0, Lcom/estrongs/fs/impl/local/b;->a:Landroid/content/Context;

    return-object p0
.end method

.method private a(Lcom/estrongs/fs/impl/local/b$d;Z)Lcom/estrongs/fs/impl/local/b$e;
    .locals 1

    .line 30
    new-instance v0, Lcom/estrongs/fs/impl/local/b$c;

    invoke-direct {v0, p0, p1, p2}, Lcom/estrongs/fs/impl/local/b$c;-><init>(Lcom/estrongs/fs/impl/local/b;Lcom/estrongs/fs/impl/local/b$d;Z)V

    return-object v0
.end method

.method static synthetic a(Lcom/estrongs/fs/impl/local/b;Lcom/estrongs/fs/impl/local/b$d;Z)Lcom/estrongs/fs/impl/local/b$e;
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Lcom/estrongs/fs/impl/local/b;->a(Lcom/estrongs/fs/impl/local/b$d;Z)Lcom/estrongs/fs/impl/local/b$e;

    move-result-object p0

    return-object p0
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/fs/impl/local/b;
    .locals 1
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 3
    new-instance v0, Lcom/estrongs/fs/impl/local/b;

    invoke-direct {v0, p0, p1, p2}, Lcom/estrongs/fs/impl/local/b;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    return-object v0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 31
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "click"

    .line 32
    invoke-virtual {v0, v1, p0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string p0, "from"

    .line 33
    invoke-virtual {v0, p0, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 34
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p0

    const-string p1, "sdcp"

    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public static a(Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 39
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "gprst"

    .line 40
    invoke-virtual {v0, v1, p0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string p0, "from"

    .line 41
    invoke-virtual {v0, p0, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 42
    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p0

    if-nez p0, :cond_0

    const-string p0, "reas"

    .line 43
    invoke-virtual {v0, p0, p3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_0
    const-string p0, "ver"

    if-eqz p1, :cond_1

    const-string p1, "n"

    goto :goto_0

    :cond_1
    const-string p1, "l"

    .line 44
    :goto_0
    invoke-virtual {v0, p0, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 45
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p0

    const-string p1, "sdcp"

    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public static a(ZLjava/lang/String;)V
    .locals 2

    .line 35
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "from"

    .line 36
    invoke-virtual {v0, v1, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string p1, "ver"

    if-eqz p0, :cond_0

    const-string p0, "n"

    goto :goto_0

    :cond_0
    const-string p0, "l"

    .line 37
    :goto_0
    invoke-virtual {v0, p1, p0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 38
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p0

    const-string p1, "sdcp"

    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method static synthetic b(Lcom/estrongs/fs/impl/local/b;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/fs/impl/local/b;->d:Ljava/lang/String;

    return-object p0
.end method


# virtual methods
.method public a(Ljava/lang/String;Lcom/estrongs/fs/impl/local/b$d;)V
    .locals 8
    .param p2    # Lcom/estrongs/fs/impl/local/b$d;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 4
    iget-object v0, p0, Lcom/estrongs/fs/impl/local/b;->a:Landroid/content/Context;

    instance-of v1, v0, Les/sp;

    const/16 v2, 0x18

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-nez v1, :cond_1

    instance-of v0, v0, Lcom/jecelyin/editor/v2/ui/d;

    if-nez v0, :cond_1

    .line 5
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt p1, v2, :cond_0

    goto :goto_0

    :cond_0
    const/4 v3, 0x0

    :goto_0
    invoke-interface {p2, v3}, Lcom/estrongs/fs/impl/local/b$d;->a(Z)V

    return-void

    .line 6
    :cond_1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    const-string p1, "unknown"

    .line 7
    :cond_2
    iput-object p1, p0, Lcom/estrongs/fs/impl/local/b;->d:Ljava/lang/String;

    .line 8
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/4 v0, 0x0

    if-lt p1, v2, :cond_4

    const/16 v1, 0x1d

    if-ge p1, v1, :cond_4

    .line 9
    invoke-direct {p0, p2, v3}, Lcom/estrongs/fs/impl/local/b;->a(Lcom/estrongs/fs/impl/local/b$d;Z)Lcom/estrongs/fs/impl/local/b$e;

    move-result-object p1

    .line 10
    iget-object v1, p0, Lcom/estrongs/fs/impl/local/b;->a:Landroid/content/Context;

    instance-of v2, v1, Les/sp;

    if-eqz v2, :cond_3

    .line 11
    new-instance v2, Lcom/estrongs/fs/impl/local/b$g;

    check-cast v1, Les/sp;

    iget-object v5, p0, Lcom/estrongs/fs/impl/local/b;->c:Ljava/lang/String;

    invoke-direct {v2, v1, p1, v5, v0}, Lcom/estrongs/fs/impl/local/b$g;-><init>(Les/sp;Lcom/estrongs/fs/impl/local/b$e;Ljava/lang/String;Lcom/estrongs/fs/impl/local/b$a;)V

    .line 12
    invoke-virtual {v2}, Lcom/estrongs/fs/impl/local/b$g;->b()Z

    move-result p1

    goto :goto_1

    .line 13
    :cond_3
    new-instance v2, Lcom/estrongs/fs/impl/local/b$g;

    check-cast v1, Lcom/jecelyin/editor/v2/ui/d;

    iget-object v5, p0, Lcom/estrongs/fs/impl/local/b;->c:Ljava/lang/String;

    invoke-direct {v2, v1, p1, v5, v0}, Lcom/estrongs/fs/impl/local/b$g;-><init>(Lcom/jecelyin/editor/v2/ui/d;Lcom/estrongs/fs/impl/local/b$e;Ljava/lang/String;Lcom/estrongs/fs/impl/local/b$a;)V

    .line 14
    invoke-virtual {v2}, Lcom/estrongs/fs/impl/local/b$g;->b()Z

    move-result p1

    :goto_1
    if-eqz p1, :cond_4

    .line 15
    iget-object p1, p0, Lcom/estrongs/fs/impl/local/b;->d:Ljava/lang/String;

    invoke-static {v3, p1}, Lcom/estrongs/fs/impl/local/b;->a(ZLjava/lang/String;)V

    return-void

    .line 16
    :cond_4
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v1, p0, Lcom/estrongs/fs/impl/local/b;->a:Landroid/content/Context;

    invoke-direct {p1, v1}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v1, 0x7f1107f2

    .line 17
    invoke-virtual {p1, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 18
    iget-object v1, p0, Lcom/estrongs/fs/impl/local/b;->a:Landroid/content/Context;

    invoke-static {v1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f0c00e6

    invoke-virtual {v1, v2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f0907bc

    .line 19
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 20
    iget-object v2, p0, Lcom/estrongs/fs/impl/local/b;->a:Landroid/content/Context;

    const v5, 0x7f1106da

    const/4 v6, 0x2

    new-array v6, v6, [Ljava/lang/Object;

    iget-object v7, p0, Lcom/estrongs/fs/impl/local/b;->b:Ljava/lang/String;

    aput-object v7, v6, v4

    iget-object v7, p0, Lcom/estrongs/fs/impl/local/b;->c:Ljava/lang/String;

    aput-object v7, v6, v3

    invoke-virtual {v2, v5, v6}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v1, 0x7f090528

    .line 21
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    const v2, 0x7f080868

    .line 22
    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 23
    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 24
    new-instance v0, Lcom/estrongs/fs/impl/local/b$a;

    invoke-direct {v0, p0, p2}, Lcom/estrongs/fs/impl/local/b$a;-><init>(Lcom/estrongs/fs/impl/local/b;Lcom/estrongs/fs/impl/local/b$d;)V

    .line 25
    iget-object v1, p0, Lcom/estrongs/fs/impl/local/b;->a:Landroid/content/Context;

    const v2, 0x7f1100ae

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->b(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 26
    iget-object v0, p0, Lcom/estrongs/fs/impl/local/b;->a:Landroid/content/Context;

    const v1, 0x7f110299

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/estrongs/fs/impl/local/b$b;

    invoke-direct {v1, p0, p2}, Lcom/estrongs/fs/impl/local/b$b;-><init>(Lcom/estrongs/fs/impl/local/b;Lcom/estrongs/fs/impl/local/b$d;)V

    invoke-virtual {p1, v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 27
    invoke-virtual {p1, v4}, Lcom/estrongs/android/ui/dialog/q$n;->a(Z)Lcom/estrongs/android/ui/dialog/q$n;

    .line 28
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    .line 29
    iget-object p1, p0, Lcom/estrongs/fs/impl/local/b;->d:Ljava/lang/String;

    invoke-static {v4, p1}, Lcom/estrongs/fs/impl/local/b;->a(ZLjava/lang/String;)V

    return-void
.end method
